@import "common";
body {
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    font-family: Microsoft YaHei,Heiti SC,tahoma,arial,Hiragino Sans GB,sans-serif;

    .wrapper {
        width: 990px;
        margin: 0 auto;

        button.btn_l, button.btn_r {
            position: absolute;
            top: 277.5px;
            line-height: 35px;
            width: 28px;
            box-sizing: border-box;
            cursor: pointer;
            border: none;
            background-color: rgba(0,0,0,0.2);
            color: #fff;
            &:hover {
                background-color: rgba(0,0,0,0.4);
            }
        }
        button.btn_l {
            left: 0;
            border-radius: 0 18px 18px 0;
            padding-right: 10px;
        }
        button.btn_r {
            right: 0;
            border-radius: 18px 0 0 18px;
            padding-left: 12px;
        }

        .inner1 {
            margin-top: 20px;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;

            .left {
                background: #fff;
                flex-basis: 240px;
                position: relative;

                ul {
                    list-style-type: none;
                    margin: 10px 0;
                    padding: 0;
                    li {
                        padding-left: 20px;
                        line-height: 180%;

                        &:hover {
                            background: #ddd;
                            .panel {
                                display: block;
                            }
                        }

                        a {
                            font-size: 15px;
                            color: #555;
                            text-decoration: none;
                            &:hover {
                                color: #bb0000;
                            }
                        }

                        .panel {
                            position: absolute;
                            z-index: 10;
                            top: 0;
                            left: 240px;
                            background: #fff;
                            width: 750px;
                            box-shadow: 2px 0 7px #aaa;
                            display: none;

                            dl {
                                display: flex;
                                dt {
                                    flex-basis: 90px;
                                    text-align: right;
                                    a {
                                        font-weight: bold;
                                        font-size: 13px;
                                    }
                                }
                                dd {
                                    margin-left: 10px;
                                    flex-basis: 630px;
                                    a {
                                        font-size: 13px;
                                    }
                                }
                            }
                        }
                    }
                }
            }

            .right {
                background: #fff;
                flex-basis: 740px;
                height: 590px;
                position: relative;
                > a {
                    transition: opacity 0.5s;
                    opacity: 0;
                    position: absolute;
                    left: 0;
                    top: 0;
                    > img {
                        width: 740px;
                        height: 590px;
                    }
                }
                > a.active {
                    opacity: 1;
                }
                div.balls {
                    position: absolute;
                    left: 40px;
                    bottom: 25px;

                    i {
                        height: 10px;
                        width: 10px;
                        display: inline-block;
                        border-radius: 50%;
                        background-color: #f3f3f3;
                        cursor: default;
                        margin-right: 5px;
                        margin-left: 5px;
                    }
                    i.active {
                        background-color: #fff;
                        border: 3px solid #e5e5e5;
                        margin-bottom: -3px;
                        margin-right: 2px;
                        margin-left: 2px;
                    }
                }
            }
        }

        .inner2 {
            margin-top: 30px;
            height: 260px;
            background-color: #fff;
            position: relative;
            overflow: hidden;

            > ul {
                list-style-type: none;
                padding: 0;
                white-space: nowrap;

                li {
                    margin: 0 22px;
                    display: inline-block;
                    padding: 30px 0 0 0;
                    font-size: 12px;
                    a {
                        text-decoration: none;
                        display: block;
                        width: 200px;

                        img {
                            margin: 0 auto;
                            height: 140px;
                            width: 140px;
                            display: block;
                        }
                        div.title {
                            margin: 13px auto 0 auto;
                            color: #333;
                            width: 158px;
                            line-height: 18px;
                            white-space: nowrap;
                            overflow: hidden;
                            text-overflow: ellipsis;
                        }
                        div.price {
                            margin: 7px auto 0 auto;
                            width: max-content;
                            border: 1px solid #e1251b;
                            text-align: center;

                            div.xian {
                                float: left;
                                width: 93px;
                                height: 23px;
                                line-height: 22px;
                                background: #e1251b;
                                color: #fff;
                                font-size: 16px;
                                font-weight: bold;

                                span {
                                    font-size: 12px;
                                    font-weight: normal;
                                    padding-right: 2px;
                                }
                            }
                            div.yuan {
                                float: left;
                                width: 66px;
                                height: 23px;
                                line-height: 23px;
                                color: #999;
                                text-decoration: line-through;
                            }
                        }
                    }
                }
            }

            .btn_l, .btn_r {
                top: 112px;
            }
        }

        .inner3 {
            // margin-top: 30px;
            // height: 260px;
            // background-color: #fff;
            // position: relative;

            > ul {
                list-style-type: none;
                padding: 30px 0 0 0;
                white-space: nowrap;
                overflow: hidden;

                li {
                    display: inline-block;
                    font-size: 12px;
                    height: 266px;
                    width: 190px;
                    background-color: #fff;
                    position: relative;
                    margin: 0 2px 8px 2px;

                    a {
                        text-decoration: none;
                        display: block;
                        width: 200px;

                        img {
                            margin: 0 auto;
                            width: 120px;
                            display: block;
                        }
                        div.title {
                            margin: 28px auto 0 auto;
                            color: #333;
                            width: 158px;
                            line-height: 18px;
                            word-break: break-all;
                            white-space: normal;
                            display: -webkit-box;
                            -webkit-line-clamp: 2;
                            -webkit-box-orient: vertical;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            span {
                                background-color: #e1251b;
                                border-radius: 2px;
                                color: #fff;
                                padding: 0 5px;
                                margin-right: 4px;
                                line-height: 16px;
                                height: 16px;
                                font-size: 12px;
                                display: inline-block;
                                font-family: Helvetica Neue,Hiragino Sans GB,SimSun,serif;
                            }
                        }
                        div.price {
                            margin: 7px auto 0 auto;
                            width: max-content;

                            div.xian {
                                float: left;
                                width: 160px;
                                line-height: 70px;
                                color: #e1251b;
                                font-size: 16px;
                                font-weight: bold;

                                span {
                                    font-size: 12px;
                                    padding-right: 2px;
                                    font-weight: bold;
                                }
                            }
                        }
                        div.more2_item_delete {
                            img {
                                margin: 0 auto;
                                width: 20px;
                                display: block;
                                padding: 3px 0 0 150px;
                            }
                        }
                        div.same {
                            background-color: #e1251b;
                            border-radius: 2px;
                            color: #fff;
                            padding: 0 5px;
                            margin-right: 4px;
                            line-height: 16px;
                            height: 16px;
                            font-size: 12px;
                            display: inline-block;
                            font-family: Helvetica Neue,Hiragino Sans GB,SimSun,serif;
                        }
                    }
                }
            }

        }
    }
}